<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:richx="http://richfaces.org/richx">
	
	<a:outputPanel id="avatar">
		<h:panelGroup rendered="#{avatarData != null}">
			<a:mediaOutput styleClass="additional-info-avatar" element="img" createContent="#{imageLoader.paintAvatarImage}" value="#{avatarData.path}" />
		</h:panelGroup>
		<h:panelGroup rendered="#{avatarData == null}">
			<h:graphicImage value="/img/portrait.png" width="80" height="80"/>
		</h:panelGroup>	
	</a:outputPanel>
	
</ui:composition>